package com.zhima.annotation;

import com.config.GlobalExceptionHandler;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import({ZhimaOjSecurityImportSelector.class, GlobalExceptionHandler.class})
public @interface EnableSecurity {
    /**
     * 需不需要ResourceServerConfiguration的配置
     *
     * @return
     */
    boolean value() default true;
}
